import React from 'react'
import './App.scss'
import {
  BrowserRouter as Router,
  Route,
  Link,
  Switch,
  Redirect
} from 'react-router-dom'
import layout from '@/pages/layout/layout'
import login from '@/pages/login/login'

function App () {
  return (
    <div className="App">
      <Router>
        <Link to="/login">login</Link>
        <Link to="/layout">layout</Link>
        <Switch>
          <Redirect from="/" exact to="/layout" />
          <Route path="/login" component={login} />
          <Route path="/layout" component={layout} />
        </Switch>
      </Router>
    </div>
  )
}

export default App
